package com.gxa.dao;

import com.gxa.pojo.Department;
import com.gxa.pojo.Role;
import com.gxa.pojo.User;

import java.sql.SQLException;
import java.util.List;

public interface RoleDao {
    List<Role> queryRoleList(Integer p1, Integer p2) throws SQLException;

    List<Role> queryRoleList(Integer p1, Integer p2,String role_name) throws SQLException;

    Department getDepartment(Integer departmet_id) throws SQLException;

    Integer countRole() throws SQLException;

    Integer countRole(String role_name) throws SQLException;

    Integer delRoleById(String id) throws SQLException;

    Integer addRole(Role role) throws SQLException;

    Integer updateRole(Role role) throws SQLException;
}
